package student;

public class Student {
        String name;//姓名
        String sex;//性别
        String clas;//班级
        int schoolNumber;//学号
        //构造方法
        public Student(){
        }

        public Student(String name, String sex, String clas, int schoolNumber) {
            this.name = name;
            this.sex = sex;
            this.clas = clas;
            this.schoolNumber = schoolNumber;
        }

        //访问器
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getClas() {
            return clas;
        }

        public void setClas(String clas) {
            this.clas = clas;
        }

        public int getSchoolNumber() {
            return schoolNumber;
        }

        public void setSchoolNumber(int schoolNumber) {
            this.schoolNumber = schoolNumber;
        }

        @Override
        public String toString() {
            return "student.Student.Student{" +
                    "姓名='" + name + '\'' +
                    ", 性别='" + sex + '\'' +
                    ", 班级='" + clas + '\'' +
                    ", 学号=" + schoolNumber +
                    '}';
        }
    }

